class sortlib:
	def __init__(self,sequence):
		self.sequence = sequence
		print self.sequence

	def __str__(self):
		return "f : nthMost(index)  \n   lastMost(index)"

	def nthMost(self,index):
		copyList = self.sequence
		copyList.sort()
		return  copyList[index-1]

	def lastMost(self,index):
		copyList = self.sequence
		copyList.sort()
		copyList.reverse()
		return copyList[index-1]
